package com.bigbigrain.manage_course.config;

import com.bigbigrain.framework.interceptor.FeignClientInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: feigin相关扩展
 * @author: B1gB1gRA1n
 * @create: 2019-12-17 16:26
 **/
@Configuration
public class FeginConfig {
    /**
     * 通过拦截器截图微服务之间调用  jwt无法传播的问题
     * @return
     */
    @Bean
    public FeignClientInterceptor feignClientInterceptor(){
        return new FeignClientInterceptor();
    }
}
